package net.qiqbframework.modelling.command;

import lombok.Getter;
import lombok.Setter;

import java.lang.reflect.Member;

/**
 * 命令中业务ID凭证的具体字段或者方法
 */
@Getter
public class BizIdentifierVoucherMember {

    @Setter
    private Object value;

    private final String bizIdentifierName;

    private final Member member;

    public BizIdentifierVoucherMember(String bizIdentifierName, Member member) {
        this.bizIdentifierName = bizIdentifierName;
        this.member = member;
    }

    public boolean isEmpty() {
        return value == null;
    }
}
